<script type="text/javascript">
$(function(){
	$(".btn01").click(function(){
		var types=$(".search_types").val();
		var url=types=='info'?'info_list.php':'service_list.php';
		$("#mySearch").attr("action",url);
		$("#mySearch").submit();
	})

})


</script>
<script type="text/javascript" >
function $$$$$(_sId){
    return document.getElementById(_sId);
 }

function hide(_sId){
	$$$$$(_sId).style.display = $$$$$(_sId).style.display == "none" ? "" : "none";
}
function pick(v,id) {
    document.getElementById('am').value=v;
    // document.getElementById('am').value=id;
    $(".search_types").val(id);
	hide('HMF-1')
}
function bgcolor(id){
    document.getElementById(id).style.background="#F7FFFA";
    document.getElementById(id).style.color="#000";
}
function nocolor(id){
    document.getElementById(id).style.background="";
    document.getElementById(id).style.color="#788F72";
}

window.onload = function(){
	$$$$$("am").onmouseover = function(){
		window.onclick = null;
	}
	$$$$$("am").onmouseout = function(){
		window.onclick = function(){
			$$$$$("HMF-1").style.display = "none";
		}
	}
}

</script>
<{include file="js.html"}>
<body>
<div class="top_bg">
<div class="top">
<a href="index.php">
<img src="images/logo.jpg" width="166" height="69" style="display:block; float:left; margin-right:90px;" /></a>
<ul class="ul_menu">
<li><a <{if $_nav==''}>class="active" style="color:#1fb0a9"<{/if}> href="index.php">首页</a></li>
<li><a <{if $_nav=='info'}>class="active" style="color:#1fb0a9"<{/if}> href="info_list.php">资讯</a></li>
<li><a <{if $_nav=='service'}>class="active" style="color:#1fb0a9"<{/if}> href="service_list.php">子时服务</a></li>
<li><a <{if $_nav=='us'}>class="active" style="color:#1fb0a9"<{/if}> href="about_us.php">关于子时</a></li>
</ul>
<div class="top_right">
<table width="500" height="69" border="0" cellspacing="0" cellpadding="0">
  <tr>
  	<form action="" method="get" id="mySearch" >
    <!-- <td>
    	<samp class="ss">
    		<input type="text" class="sr" name="title" onClick="if(this.value=='输入搜索内容...'){this.value=''}" value="输入搜索内容..." />
			<input name="search" type="button" class="btn01" align="right" /></input>
			<input name="types" class="types" type="hidden" value="service" />
		</samp>
	</td> -->
	<td>
		<samp class="ss">
            <input onclick="hide('HMF-1')" type="text" value="资讯" id="am" class="am" />
            <div id="HMF-1" style="display: none " class="bm"> 
	            <span id="a1" onclick="pick('资讯','info')" onMouseOver="bgcolor('a1')" onMouseOut="nocolor('a1')" class="cur">资讯</span> 
	            <span id="a2" onclick="pick('服务','service')" onMouseOver="bgcolor('a2')" onMouseOut="nocolor('a2')" class="cur">服务</span> 
            </div>
            <input type="text" class="sr" name="title" onclick="if(this.value=='输入搜索内容...'){this.value=''}" value="输入搜索内容..." />
            <input type="button" class="btn01" align="right" /></input>
            <input name="types" class="search_types" type="hidden" value="info"/>
        </samp>
    </td>
	</form>
   <{if $user_id!=''}>
    <td><a href="my_message.php" class="a_xx">消息</a></td>
    <td>
    	<!-- <a href="#"><img src="images/user_tb.jpg" width="34" height="34" style="display:block;" /></a> -->
    	      <span class="j_top_dz">
            	<a href="#" class="j_top_dzy_h"><img src="./upload/user/small/<{$user.avatar}>" /></a>
                <div class="j_top_dztk">
                	<span class="j_top_dztks">
                    	<a href="my_account.php" class="j_top_dztksz"><img src="./upload/user/small/<{$user.avatar}>" /></a>
                        <span class="j_top_dztksy"><{$user.account}></span>
                    </span>
                    <a href="user_main.php?type=user" class="j_top_dztkx j_top_dztkx_hov">我的主页</a>
                    <a href="my_collect_info.php" class="j_top_dztkx">我的收藏</a>
                    <a href="my_collect_service.php" class="j_top_dztkx">我关注的服务</a>
                    <a href="info_apply.php" class="j_top_dztkx">向子时投稿</a>
                    <a href="my_account.php" class="j_top_dztkx">账号设置</a>
                    <a href="javascript:;" onClick="out();" class="j_top_dztkx outLogin">退出</a>
                </div>
            </span>
         
    </td>
     <{else}>
     <td>
      <a href="#" class="j_top_dzy "><img src="images/sy/sy_01.png" /></a>
     </td>
     <td>
             <span class="j_top_dz">
                <!-- <a href="#" class="j_top_dz1"></a> --><a href="#inline2" class="j_top_dz1 various1">登录/注册</a>
            </span>
      </td>    
          <{/if}>
  </tr>
</table>
</div>

</div>
</div>
<div class="clear"></div>

<!-- 登录-开始 -->
<div class="j_log" style="display:none;">
  <!-- 登录1-开始 -->
  <div class="j_logn" id="inline2" style="display:;">
      <div class="j_logn_logo"><img src="images/sy/sy_03.png" width="120" height="120" /></div>
        <div class="j_logn_n">
          <input type="text" class="j_logn_n1 ePhone" name="ePhone" onclick="if(this.value=='请输入手机号或邮箱'){this.value=''}" value="请输入手机号或邮箱" />
            <input type="button" class="j_logn_n2" value="登录/注册" />
            <span class="j_logn_n3"><a href="#">忘记密码？</a></span>
            <div class="j_logn_n4">
              <span class="j_logn_n4t">第三方帐号登录</span>
                <div class="j_logn_n4n">
                  <a href="#"><img src="images/sy/log_03.png" /></a>
                  <a href="#"><img src="images/sy/log_06.png" /></a>
                  <a href="#"><img src="images/sy/log_08.png" /></a>
                </div>
            </div>
        </div>
    </div>
  <!-- 登录1-结束 -->
    
  <!-- 登录2-开始 -->
  <div class="j_logn" style="display:none;">
      <div class="j_logn_logo"><img src="images/sy/sy_03.png" width="120" height="120" /></div>
        <span class="j_logn_log">登录</span>
        <div class="j_logn_n">
          <input type="text" class="j_logn_n1" onclick="if(this.value=='1323456789'){this.value=''}" value="1323456789" />
          <input type="text" class="j_logn_n1" onclick="if(this.value=='密码'){this.value=''}" value="密码" />
            <span class="j_logn_n5">帐号或密码错误</span>
            <input type="button" class="j_logn_n2" value="登录" />
            <span class="j_logn_n3"><a href="#">忘记密码？</a></span>
           
        </div>
    </div>
  <!-- 登录2-结束 -->
    
  <!-- 登录3-开始 -->
  <div class="j_logn" style="display:none;">
      <div class="j_logn_logo"><img src="images/sy/sy_03.png" width="120" height="120" /></div>
        <span class="j_logn_log">注册</span>
        <div class="j_logn_n">
          <input type="text" class="j_logn_n1" onclick="if(this.value=='1323456789'){this.value=''}" value="1323456789" />
          <input type="text" class="j_logn3_n1" onclick="if(this.value=='短信验证码'){this.value=''}" value="短信验证码" />
            <input type="button" class="j_logn3_n2" value="点击获取" />
          <input type="text" class="j_logn_n1" onclick="if(this.value=='请输入密码，不小于6位'){this.value=''}" value="请输入密码，不小于6位" />
            <span class="j_logn_n5">密码不能为空</span>
            <input type="button" class="j_logn_n2" value="注册" />
        </div>
    </div>
  <!-- 登录3-结束 -->
    
  <!-- 登录4-开始 -->
  <div class="j_logn" style="display:none;">
      <div class="j_logn_logo"><img src="images/sy/sy_03.png" width="120" height="120" /></div>
        <div class="j_logn_n">
          
            <span class="j_logn4_n1">注册成功</span>
            <span class="j_logn4_n2">3秒后跳回原来页面</span>
        </div>
    </div>
  <!-- 登录4-结束 -->
    
  <!-- 邮箱注册3-开始 -->
  <div class="j_logn" style="display:none;">
      <div class="j_logn_logo"><img src="images/sy/sy_03.png" width="120" height="120" /></div>
        <div class="j_logn_n">
          <span class="j_logn4_n2" style="text-align:left;">验证邮件已经发送到你邮箱，请登录邮箱完成验证。</span>
            <span class="j_logn4_n3"><a href="#">前往邮箱 &gt;&gt;</a></span>
        </div>
    </div>
  <!-- 邮箱注册3-结束 -->
    
  <!-- 登录4-开始 -->
  <div class="j_logn" style="display:none;">
      <div class="j_logn_logo"><img src="images/sy/sy_03.png" width="120" height="120" /></div>
        <div class="j_logn_n">
            <span class="j_4logn_n5">为了你的账号安全，请补全密码 </span>
            <span class="j_4logn_n5">今后你可以使用邮箱及密码进行登录</span>
          <input type="text" class="j_logn_n1" onclick="if(this.value=='请输入密码,不小于6位'){this.value=''}" value="请输入密码,不小于6位" />
            <input type="button" class="j_logn_n2" value="设置密码并登录" />
           
        </div>
    </div>
  <!-- 登录4-结束 -->
    
  <!-- 找回密码-开始 -->
  <div class="j_logn" style="display:none;">
      <div class="j_logn_logo"><img src="images/sy/sy_03.png" width="120" height="120" /></div>
        <div class="j_logn_n">
          <input type="text" class="j_logn_n1" onclick="if(this.value=='请输入手机号或邮箱'){this.value=''}" value="请输入手机号或邮箱" />
            <input type="button" class="j_logn_n2" value="找回密码" />
           
        </div>
    </div>
  <!-- 找回密码-结束 -->
    
</div>
<!-- 登录-结束 -->